
<script type="text/javascript">
				function submitLink(obj){
					var destinationPage = $(obj).attr("alt");
						$("#navDestinationPage").val(destinationPage);
						$("#navigationForm").submit();
						return false;
				}
				</script>
<!-- Navigation -->
<div id="navigation">
	<ul>
	<?php

	//<?php echo ADMINBASEURL; nasa constant
	?>
		<li><a href="<?php echo ADMINBASEURL;?>dashboard" alt="dashboard"
		<?php if($page == 'dashboard') echo 'class="active"';?>>Dashboard</a>
		</li>
		<li><a href="<?php echo ADMINBASEURL;?>pages" alt="pages"
		<?php if($page == 'pages') echo 'class="active"';?>
			onclick="submitLink(this);">Pages</a></li>

		<li><a href="<?php echo ADMINBASEURL;?>transaction" alt="transactions"
		<?php if($page == 'transaction') echo 'class="active"';?>
			onclick="submitLink(this);">Transactions</a></li>
		<li><a href="<?php echo ADMINBASEURL;?>warehouse" alt="warehouse"
		<?php if($page == 'warehouse') echo 'class="active"';?>
			onclick="submitLink(this);">Warehouse</a></li>

		<li><a href="<?php echo ADMINBASEURL;?>users" alt="users"
		<?php if($page == 'users') echo 'class="active"';?>
			onclick="submitLink(this);">Users</a></li>

		<li><a href="<?php echo ADMINBASEURL;?>logs" alt="upload"
		<?php if($page == 'upload') echo 'class="active"';?>
			onclick="submitLink(this);">Uploaded Files</a></li>

		<li><a href="<?php echo ADMINBASEURL;?>logs" alt="reports"
		<?php if($page == 'reports') echo 'class="active"';?>
			onclick="submitLink(this);">Reports</a></li>

		<li><a href="<?php echo ADMINBASEURL;?>logs" alt="logs"
		<?php if($page == 'logs') echo 'class="active"';?>
			onclick="submitLink(this);">Logs</a></li>
	</ul>
</div>
<div>
	<form action='<?php echo ADMINBASEURL;?>' method='post'
		id="navigationForm">

		<input type="hidden" name="page" id="navDestinationPage" value="home">
	</form>
</div>
<!-- END Navigation -->
